/*
 * bank_iic.h
 *
 *  Created on: 2014-4-7
 *      Author: Rome
 */

#ifndef BANK_IIC_H_
#define BANK_IIC_H_

#define   OUT    1


#define   IN     0

#define time	30

void BANK_AT24C16_W(unsigned short address, unsigned char ddata );
unsigned char BANK_AT24C16_R(unsigned short address);
void BankI2CRead(alt_u16 Addr, alt_u8* Pbuf, alt_u16 length);
void BankI2CWrite(alt_u16 Addr, alt_u8* Pbuf, alt_u16 length);

#endif /* BANK_IIC_H_ */
